package ModelLayer;


/**
 * Handles DVDSpecimen object
 * 
 * @author Mikkel Petersen 
 * @version 1.0 (2013-11-07)
 */
public class DvdSpecimen
{
    private static long id;
    private long specimenId;
    private long dvdId;
    private boolean available;
    private String dvdTitle;

    /**
     * Constructor for objects of class DvdSpecimen
     */
    public DvdSpecimen(String dvdTitle, long dvdId)
    {
        id++;
        specimenId = id;
        available = true;
        this.dvdTitle = dvdTitle;
        this.dvdId = dvdId;
    }

    /**
     * Accessor method to get id
     * 
     * @return specimenId (unique id for object). 
     */
    public long getId()
    {
        return specimenId;
    }
    
    /**
     * Accessor method to get available.
     * 
     * @return true if DVD is avaliable, false if not.
     */
    public boolean getAvailable()
    {
        return available;
    }
    
    /**
     * Mutator method for avaliable.
     * 
     * @param avaliable true if DVD is avaliable, false if not.
     */
    public void setAvailable(boolean available)
    {
        this.available = available;
    }
    
    /**
     * Accessor method to get dvdTitle.
     * 
     * @return the dvd title
     */
    public String getDVDTitle()
    {
        return dvdTitle;
    }
    
    /**
     * Accessor method to get dvdId
     * 
     * @return the dvd id
     */
    public long getDVDId()
    {
        return dvdId;
    }
}
